package com.sxit.tdf.server.exception;

import lombok.Data;

/**
 * @author 橙子高
 * @date 2022/2/5 21:21
 * @describe
 */
@Data
public class TdfException extends RuntimeException {
  private final String msg;
  private int code = 500;

  public TdfException(String msg) {
    super(msg);
    this.msg = msg;
  }

  public TdfException(String msg, Throwable e) {
    super(msg, e);
    this.msg = msg;
  }

  public TdfException(String msg, int code) {
    super(msg);
    this.msg = msg;
    this.code = code;
  }

  public TdfException(String msg, int code, Throwable e) {
    super(msg, e);
    this.msg = msg;
    this.code = code;
  }
}
